package com.fugit.tag;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

/**
 * Personal taglib management class. Display script header.
 * 
 * @author Jee3
 * 
 */
public class FuScript extends SimpleTagSupport {

	private final static String JQUERY = "<script src=\"fugit/js/jquery-1.8.2.min.js\"></script>";
	private final static String JQWIDG = "<script src=\"fugit/js/vendor/jquery.ui.widget.js\"></script>";
	private final static String TMPLAT = "<script src=\"fugit/js/tmpl.min.js\"></script>";
	private final static String LOADIM = "<script src=\"fugit/js/load-image.min.js\"></script>";
	private final static String CANVAS = "<script src=\"fugit/js/canvas-to-blob.min.js\"></script>";
	private final static String BTSTRP = "<script src=\"fugit/js/bootstrap.min.js\"></script>";
	private final static String BTIMGL = "<script src=\"fugit/js/bootstrap-image-gallery.min.js\"></script>";
	private final static String IFRMTR = "<script src=\"fugit/js/jquery.iframe-transport.js\"></script>";
	private final static String FILEUP = "<script src=\"fugit/js/jquery.fileupload.js\"></script>";
	private final static String FUPLFP = "<script src=\"fugit/js/jquery.fileupload-fp.js\"></script>";
	private final static String FUPLUI = "<script src=\"fugit/js/jquery.fileupload-ui.js\"></script>";
	private final static String LOCALE = "<script src=\"fugit/js/locale.js\"></script>";
	private final static String MAINJS = "<script src=\"fugit/js/main.js\"></script>";

	@Override
	public void doTag() throws JspException, IOException {
		getJspContext().getOut().write(
				JQUERY + "\n" + JQWIDG + "\n" + TMPLAT + "\n" + LOADIM + "\n"
						+ CANVAS + "\n" + BTSTRP + "\n" + BTIMGL + "\n"
						+ IFRMTR + "\n" + FILEUP + "\n" + FUPLFP + "\n"
						+ FUPLUI + "\n" + LOCALE + "\n" + MAINJS + "\n");
	}

}
